import { reactive } from 'vue';

export default () => {
  const selectPersonOptions = reactive({
    title: '授权',
    submit: (data) => {
      console.log('data----', data);
    },
    search: {
      url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/history',
      type: 'get'
    },
    history: {
      url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/history',
      type: 'get'
    },
    user: {
      url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/getUser',
      type: 'get'
    },
    department: {
      data: {
        url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/getDepartment',
        type: 'get'
      },
      subData: {
        url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/getSubNode',
        type: 'get'
      }
    },
    position: {
      data: {
        url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/getPosition',
        type: 'get'
      },
      subData: {
        url: 'https://www.fastmock.site/mock/e8823b6c0884aa629219855d2ce7f5f9/test/getPositionUser',
        type: 'post'
      }
    }
  });

  return {
    selectPersonOptions
  };
};
